function dialog(status,message){
    var title="";
    switch(status)
    {
        case "success": title=message; break;
        case "warning": title=message;break;
        case "error": title=message;break;
    }
    /*swal(title, "", status);*/
    swal({
        title: title,
        type:status
    });
}